<template>
  <div>
    <!-- <mt-header fixed title="fixed top"></mt-header> -->
    <!-- <mt-header title="请先登录">
  <router-link to="/" slot="left">
    <mt-button icon="back" @click="fn()">back</mt-button>
  </router-link>
  <mt-button icon="more" slot="right"></mt-button>
</mt-header> -->
<mt-swipe :auto="4000">
  <mt-swipe-item>1</mt-swipe-item>
  <mt-swipe-item>2</mt-swipe-item>
  <mt-swipe-item>3</mt-swipe-item>
</mt-swipe>
  </div>
</template>

<script>
import { Header } from 'mint-ui';
export default {
  name: 'HelloWorld',
  methods: {
    fn(){
      this.$toast({
  message: '操作成功',
  iconClass: 'icon icon-success'
});
    }
  },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.mint-header{
background: #999;
}
.mint-swipe{
  height: 200px;
  background: yellowgreen;
}
</style>
